﻿using System;
using System.Net.DnsToolkit.Packet;

namespace System.Net.DnsToolkit.Serializer {
    /// <summary>
    /// Write Header into object
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IHeaderWriter<T> {

        /// <summary>
        /// Write Header into destination object
        /// </summary>
        /// <param name="destination"></param>
        /// <returns></returns>
        void Write(T destination, IHeader header);


    }
}
